package chixing.day10.innerclass;

public class Customer {
    private int custId; //member variable成员变量
    private String custName;
  //成员内部类：存在的意义是为了服务Customer类
    class CustomerAddress{
        private String custProvince;
        private String custCity;
        private String custAddress;
        private String custPhone;
        public CustomerAddress() {
        }
        public CustomerAddress(String custProvince, String custCity, String custAddress, String custPhone) {
            this.custProvince = custProvince;
            this.custCity = custCity;
            this.custAddress = custAddress;
            this.custPhone = custPhone;
        }

      public String getCustProvince() {
          return custProvince;
      }

      public void setCustProvince(String custProvince) {
          this.custProvince = custProvince;
      }

      public String getCustCity() {
          return custCity;
      }

      public void setCustCity(String custCity) {
          this.custCity = custCity;
      }

      public String getCustAddress() {
          return custAddress;
      }

      public void setCustAddress(String custAddress) {
          this.custAddress = custAddress;
      }

      public String getCustPhone() {
          return custPhone;
      }

      public void setCustPhone(String custPhone) {
          this.custPhone = custPhone;
      }
  }
    public void shopping(){ //member method 成员方法
        System.out.println("开始购物");
    }

    public int getCustId() {
        return custId;
    }

    public void setCustId(int custId) {
        this.custId = custId;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

}
